//
//  NTOrderDetailVC.swift
//  NTOrderModule
//
//  Created by zto_yhd on 2020/1/20.
//

import UIKit
import Alamofire

class NTOrderDetailVC: UIViewController {
    
    var iconImageView: UIImageView = {
        let imageView = UIImageView()
        imageView.backgroundColor = UIColor.white
        return imageView
    }()
    

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        self.title = "订单详情"
        view.backgroundColor = UIColor.white
        
        view.addSubview(iconImageView)
        iconImageView.frame = CGRect(x: 50, y: 100, width: 300, height: 200)
        iconImageView.backgroundColor = UIColor.lightGray
        
        let currentBundle = Bundle(for: self.classForCoder)
        let path = currentBundle.path(forResource: "network.png", ofType: nil, inDirectory: "NTOrderModule.bundle")

        iconImageView.image = UIImage.init(contentsOfFile: path ?? "")
        
        
        Alamofire.request("http://rap2api.taobao.org/app/mock/242051/usercenter/get/no-params", method: .get, parameters: nil, encoding: URLEncoding.default, headers: nil).responseJSON { (result) in
            print(result.value as Any)
        }
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
